package com.fishery.authority.service;

import com.fishery.authority.entity.Role;
import com.fishery.authority.entity.RoleBase;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hy
 * @since 2021-03-08
 */
public interface RoleBaseService extends IService<RoleBase> {
    /**
     * 基地创建新角色
     *
     * @param roleBase
     * @return
     */
    boolean baseCreateNewRole(RoleBase roleBase);

    /**
     * 切割list实现分页查询对应基地下的role
     *
     * @param start
     * @param end
     * @param baseId
     * @return
     */
    Map sliceListAchievePageSelectBaseDeRole(Integer start, Integer end, String baseId);

    List<Role> SelectBaseDeRole(String baseId);
}
